<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="author" content="xlorey@126.com">
    <meta name="generator" content="vscode">
    <title>课程作业信息中心</title>
    <style>
        :root {
            --primary-color: black;
        }

        @font-face {
            font-family: xlore-font;
            src: url(./Assets/font/AlimamaFangYuanTiVF-Thin-2.ttf);
        }

        * {
            padding: 0;
            margin: 0;
            list-style: none;
            text-decoration: none;
            box-sizing: border-box;
            font-family: 'Segoe UI', xlore-font;
        }

        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            padding: 2rem;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .header {
            text-align: center;
            margin-bottom: 2rem;
            padding: 2rem;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 15px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
        }

        .card {
            background-color: #ffffff;
            border-radius: 15px;
            padding: 1.5rem;
            transition: transform .3s ease;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            position: relative;
        }

        .card:hover {
            transform: translateY(-5px);
        }

        .subject {
            color: #2c3e50;
            border-bottom: 2px solid #3498db;
            padding-bottom: 0.5rem;
            margin-bottom: 1rem;
            font-size: 1.4rem;
        }

        .assignment-list {
            list-style: none;
        }

        .assignment-item {
            padding: 0.8rem 0;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-content: center;
        }

        .due-date {
            color: #e74c3c;
            font-size: 0.9rem;
        }

        .status {
            padding: 0.3rem 0.6rem;
            border-radius: 20px;
            font-size: 0.8rem;
        }

        .status.completed {
            background: #2ecc71;
            color: white;
        }

        .status.in-progress {
            background: #f1c40f;
            color: white;
        }

        .test-info {
            /* position: absolute; */
            /* bottom: -1.5rem; */
            right: 1rem;
            margin-top: 1rem;
            padding: 1rem 0;
        }

        .test-a {
            padding: 1rem;
            border-radius: 10px;
            background: #d6e6f2;
            color: #2c3e50;
            transition: background .3s ease;
        }

        .test-a:hover {
            background: #a6e3e9;
        }

        .announcement {
            background: #fff3cd;
            border-left: 4px solid #ffc107;
            padding: 1.5rem;
            margin-bottom: 2rem;
            border-radius: 8px;
        }

        .announcement-data {
            font-size: 0.9em;
            color: #666;
            margin-top: 0.5rem;
        }

        .history-section {
            margin: 3rem 0;
            padding: 2rem;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 15px;
        }

        .history-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-top: 1rem;
        }

        .history-link {
            padding: 1rem;
            background: #f8f9fa;
            border-radius: 8px;
            text-decoration: none;
            color: #2c3e50;
            transition: all 0.3s ease;
            text-align: center;
            cursor: pointer;
        }

        .history-link:hover {
            background: rgba(52, 152, 219, 0.5);
            color: white;
            transform: translateY(-2px);
        }

        footer {
            text-align: center;
            margin-top: 3rem;
            padding: 1.5rem;
            color: #666;
            border-top: 1px solid #eee;
        }


        /* 滚动条 */
        ::-webkit-scrollbar {
            width: 10px;
        }

        ::-webkit-scrollbar-thumb {
            background-color: #2c3e50;
            border-radius: 2px;
        }

        @media (max-width:768px) {
            body {
                padding: 1rem;
            }

            .header h1 {
                font-size: 1.5rem;
            }
        }
    </style>
    <style>
        /* 热点链接样式 */
        .hotspot-links {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .link-row {
            display: flex;
            justify-content: space-between;
            gap: 10px;
        }

        .link-row.single {
            justify-content: flex-start;
        }

        .hotspot-link {
            flex: 1;
            display: flex;
            align-items: center;
            padding: 12px;
            background: #f8f9fa;
            border-radius: 8px;
            transition: all 0.3s ease;
            color: #2c3e50;
            text-decoration: none;
            min-width: 120px;
        }

        .hotspot-link:hover {
            background: #e9ecef;
            transform: translateY(-2px);
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
        }

        .hotspot-link .icon {
            font-size: 1.2em;
            margin-right: 8px;
        }

        .hotspot-link .platform {
            flex-grow: 1;
            font-weight: 500;
        }

        .hot-tag {
            background: #ff4757;
            color: white;
            font-size: 0.8em;
            padding: 2px 6px;
            border-radius: 4px;
            margin-left: 8px;
        }

        #wordMemory {
            background-image: linear-gradient(to top, #fff1eb 0%, #ace0f9 100%);
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            height: calc(100% - 40px);
            font-size: larger;
            color: #2c3e50;
            transition: all 1s ease;
        }
        #wordMemory:hover{
            transform: rotate(360deg);
        }
        /* 移动端适配 */
        @media (max-width: 768px) {
            .link-row {
                flex-wrap: wrap;
            }

            .hotspot-link {
                flex: 1 1 45%;
                min-width: auto;
            }

            .link-row.single .hotspot-link {
                flex: 0 1 auto;
            }
        }
    </style>
</head>

<body>
    <div class="container">
        <header class="header">
            <h1>📚 课程作业信息中心</h1>
            <p>当前作业安排</p>
        </header>
        <div class="announcement">
            <h3>📢 最新公告</h3>
            <div id="announcement-content"></div>
        </div>
        <!-- 课程内容 -->
        <div class="grid">
            <div class="card">
                <h2 class="subject">测试内容</h2>
                <ul class="assignment-list">
                    <li class="assignment-item">
                        <h3>测试内容</h3>
                        <span class="due-date">截止：3月2日</span>
                    </li>
                    <li>
                        <p>这是测试内容，只是为了展示页面布局</p>
                    </li>
                </ul>
                <div class="test-info">
                    <a href="./current/?subject=math/3.md" class="test-a">参考链接</a>
                </div>
            </div>
            <div class="card">
                <h2 class="subject">测试内容</h2>
                <ul class="assignment-list">
                    <li class="assignment-item">
                        <h3>测试内容</h3>
                        <span class="due-date">截止：3月2日</span>
                    </li>
                    <li>
                        <p>这是测试内容，只是为了展示页面布局</p>
                    </li>
                </ul>
                <div class="test-info">
                    <a href="./current/?subject=gll/3.md" class="test-a">参考链接</a>
                </div>
            </div>
            <div class="card">
                <h2 class="subject">测试内容</h2>
                <ul class="assignment-list">
                    <li class="assignment-item">
                        <span>测试内容</span>
                        <span class="due-date">截止：3月2日</span>
                    </li>
                </ul>
                <div class="test-info">
                    <a href="./current/?subject=cpp/3.md" class="test-a">参考链接</a>
                </div>
            </div>
            <div class="card">
                <h2 class="subject">测试内容</h2>
                <ul class="assignment-list">
                    <li class="assignment-item">
                        <span>测试内容</span>
                        <span class="due-date">截止：3月2日</span>
                    </li>
                </ul>
                <div class="test-info">
                    <a href="./current/?subject=sts/3.md" class="test-a">参考链接</a>
                </div>
            </div>
            <div class="card">
                <h2 class="subject">测试内容</h2>
                <ul class="assignment-list">
                    <li class="assignment-item">
                        <span>测试内容</span>
                        <span class="due-date">截止：3月2日</span>
                    </li>
                </ul>
                </ul>
                <div class="test-info">
                    <a href="./current/?subject=dxy/3.md" class="test-a">参考链接</a>
                </div>
            </div>
            <div class="card">
                <h2 class="subject">测试内容</h2>
                <ul class="assignment-list">
                    <li class="assignment-item">
                        <h3>测试内容</h3>
                        <span class="due-date">截止：3月2日</span>
                    </li>
                    <li>
                        <p>这是测试内容，只是为了展示页面布局</p>
                    </li>
                </ul>
                <div class="test-info">
                    <a href="./current/?subject=ls/3.md" class="test-a">参考链接</a>
                </div>
            </div>
            <div class="card">
                <h2 class="subject">数字逻辑</h2>
                <ul class="assignment-list">
                    <li class="assignment-item">
                        <h3>第二章习题二</h3>
                        <span class="due-date">截止：3月2日</span>
                    </li>
                    <li class="assignment-item">
                        <p>这是测试内容，只是为了展示页面布局</p>
                    </li>
                </ul>
                <div class="test-info">
                    <a href="./current/?subject=ljsj/3.md" class="test-a">参考链接</a>
                </div>
            </div>
            <div class="carad">
                <h2 class="subject">📌 热点聚合</h2>
                <div class="hotspot-links">
                    <div class="link-row">
                        <a href="./api/?type=baidu" target="_blank" class="hotspot-link">
                            <span class="icon">🔍</span>
                            <span class="platform">百度</span>
                            <span class="hot-tag">实时榜</span>
                        </a>
                        <a href="./api/?type=history" target="_blank" class="hotspot-link">
                            <span class="icon">📅</span>
                            <span class="platform">历史今日</span>
                        </a>
                        <a href="./api/?type=sp" target="_blank" class="hotspot-link">
                            <span class="icon">🎬</span>
                            <span class="platform">短剧</span>
                        </a>
                    </div>

                    <div class="link-row">
                        <a href="./api/?type=acg" target="_blank" class="hotspot-link">
                            <span class="icon">🎨</span>
                            <span class="platform">动漫</span>
                        </a>
                        <a href="./api/?type=movie" target="_blank" class="hotspot-link">
                            <span class="icon">🎞️</span>
                            <span class="platform">电影</span>
                        </a>
                        <a href="./api/?type=tv" target="_blank" class="hotspot-link">
                            <span class="icon">📺</span>
                            <span class="platform">剧集</span>
                        </a>
                    </div>

                    <div class="link-row">
                        <a href="./api/?type=vs" target="_blank" class="hotspot-link">
                            <span class="icon">🎉</span>
                            <span class="platform">综艺</span>
                        </a>
                        <a href="./api/?type=weibo" target="_blank" class="hotspot-link">
                            <span class="icon">🟥</span>
                            <span class="platform">微博</span>
                            <span class="hot-tag">热搜</span>
                        </a>
                        <a href="./api/?type=douyin" target="_blank" class="hotspot-link">
                            <span class="icon">🎵</span>
                            <span class="platform">抖音</span>
                        </a>
                    </div>

                    <div class="link-row">
                        <a href="./api/?type=zhihu" target="_blank" class="hotspot-link">
                            <span class="icon">📖</span>
                            <span class="platform">知乎</span>
                        </a>
                        <a href="./api/?type=sspai" target="_blank" class="hotspot-link">
                            <span class="icon">✒️</span>
                            <span class="platform">少数派</span>
                        </a>
                        <a href="./api/?type=biliall" target="_blank" class="hotspot-link">
                            <span class="icon">🟦</span>
                            <span class="platform">哔哩全站</span>
                        </a>
                    </div>

                    <div class="link-row single">
                        <a href="./api/?type=bilihot" target="_blank" class="hotspot-link">
                            <span class="icon">🔥</span>
                            <span class="platform">哔哩热搜</span>
                            <span class="hot-tag">热榜</span>
                        </a>
                    </div>
                </div>
            </div>
            <div class="history-section">
                <h2>📜 历史课程作业</h2>
                <div class="history-list">
                    <a href="javascript:void(0);" class="history-link">第二周</a>
                </div>
            </div>
            
        </div>
        <footer>
            © 2025-present All Rights Reserved by Xlorey
        </footer>
</body>
<script>
    //公告加载
    function loadAnnouncement() {
        document.getElementById("announcement-content").innerHTML = `
        <p>测试公告</p>
        <h4>更新内容：</h4>
        <p>- 更新内容测试</p>
        <p class="announcement-data">发布时间：2025-2-24</p>
        `;
    }
    function Init() {
        loadAnnouncement();
    }
    Init();
</script>

</html>